function RequestRecentDocuments() {
    RequestLibraryData("documents?q=sort:recent&limit=2",
		       function(results, terms) {
			   ProcessLibraryDocuments(
			       "recent_list", results, "home"); });
}    

function RequestPopularDocuments() {
    RequestLibraryData("documents?q=sort:popular&limit=2",
		       function(results, library_url, terms) {
			   ProcessLibraryDocuments(
			       "popular_list", results, "home"); });
}
